.class public Lrexsee/core/progress/RexseeProgressCover;
.super Ljava/lang/Object;
.source "RexseeProgressCover.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final DATABASE_PROGRESSCOVER:Ljava/lang/String; = "progressCover.db"

.field public static final DefaultChronometerStyle:Ljava/lang/String; = "width:wrapcontent;height:wrapcontent;font-size:14px;label-padding:1 3 1 3;border-width:0px;background-color:#888888;color:#FFFFFF;label:0;icon-visibility:hidden;"

.field public static final DefaultDialogBackground:Ljava/lang/String; = "#222222+#444444+#AAAAAA+#222222"

.field public static final DefaultDialogStyle:Ljava/lang/String; = "border-width:0px;alpha:1;width:fillparent;height:fillparent;top:0;left:0;window-cancelable:false;padding:0 0 75 0;background-color:transparent;align:center; vertical-align:bottom;window-animation:none;"

.field public static final DefaultLabelStyle:Ljava/lang/String; = "width:wrapcontent;height:wrapcontent;label-width:wrapcontent;label-height:wrapcontent;font-size:14px;background-color:transparent;label-padding:1 3 1 3;label-background-color:#888888;color:#FFFFFF;icon-width:48;icon-height:48;border-width:0;"

.field public static final DefaultProgressStyle:Ljava/lang/String; = "margin:5px;width:200px;height:16px;border-color:#111111 #eeeeee #eeeeee #111111;border-width:1px;"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "ProgressCover"

.field public static final TABLE_STYLE:Ljava/lang/String; = "style"


# instance fields
.field private label:Lrexsee/core/widget/LabelDiv;

.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mCoverProgressDialog:Lrexsee/core/widget/DivDialog;

.field private mMeter:Landroid/widget/Chronometer;

.field private progress:Lrexsee/core/widget/ProgressDiv;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 56
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 50
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mCoverProgressDialog:Lrexsee/core/widget/DivDialog;

    .line 57
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    .line 58
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    .line 59
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/progress/RexseeProgressCover;)Lrexsee/core/widget/DivDialog;
    .locals 1

    .prologue
    .line 50
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mCoverProgressDialog:Lrexsee/core/widget/DivDialog;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/core/progress/RexseeProgressCover;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/core/progress/RexseeProgressCover;Lrexsee/core/widget/LabelDiv;)V
    .locals 0

    .prologue
    .line 51
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressCover;->label:Lrexsee/core/widget/LabelDiv;

    return-void
.end method

.method static synthetic access$3(Lrexsee/core/progress/RexseeProgressCover;)Lrexsee/core/widget/LabelDiv;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->label:Lrexsee/core/widget/LabelDiv;

    return-object v0
.end method

.method static synthetic access$4(Lrexsee/core/progress/RexseeProgressCover;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$5(Lrexsee/core/progress/RexseeProgressCover;Lrexsee/core/widget/ProgressDiv;)V
    .locals 0

    .prologue
    .line 52
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressCover;->progress:Lrexsee/core/widget/ProgressDiv;

    return-void
.end method

.method static synthetic access$6(Lrexsee/core/progress/RexseeProgressCover;)Lrexsee/core/widget/ProgressDiv;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->progress:Lrexsee/core/widget/ProgressDiv;

    return-object v0
.end method

.method static synthetic access$7(Lrexsee/core/progress/RexseeProgressCover;Lrexsee/core/widget/DivDialog;)V
    .locals 0

    .prologue
    .line 50
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressCover;->mCoverProgressDialog:Lrexsee/core/widget/DivDialog;

    return-void
.end method

.method static synthetic access$8(Lrexsee/core/progress/RexseeProgressCover;Landroid/widget/Chronometer;)V
    .locals 0

    .prologue
    .line 53
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressCover;->mMeter:Landroid/widget/Chronometer;

    return-void
.end method

.method static synthetic access$9(Lrexsee/core/progress/RexseeProgressCover;)Landroid/widget/Chronometer;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mMeter:Landroid/widget/Chronometer;

    return-object v0
.end method

.method public static final second2string(I)Ljava/lang/String;
    .locals 6
    .param p0, "second"    # I

    .prologue
    const-string v5, ":"

    .line 137
    div-int/lit16 v3, p0, 0xe10

    int-to-float v3, v3

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v0

    .line 138
    .local v0, "h":I
    rem-int/lit16 v3, p0, 0xe10

    div-int/lit8 v3, v3, 0x3c

    int-to-float v3, v3

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v1

    .line 139
    .local v1, "m":I
    rem-int/lit16 v3, p0, 0xe10

    rem-int/lit8 v2, v3, 0x3c

    .line 140
    .local v2, "s":I
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ":"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ":"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    return-object v3
.end method

.method public static final string2second(Ljava/lang/String;)I
    .locals 5
    .param p0, "string"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x2

    .line 144
    :try_start_0
    const-string v2, ":"

    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 145
    .local v1, "s":[Ljava/lang/String;
    array-length v2, v1

    const/4 v3, 0x3

    if-lt v2, v3, :cond_0

    .line 146
    const/4 v2, 0x0

    aget-object v2, v1, v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    mul-int/lit16 v2, v2, 0xe10

    const/4 v3, 0x1

    aget-object v3, v1, v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    mul-int/lit8 v3, v3, 0x3c

    add-int/2addr v2, v3

    const/4 v3, 0x2

    aget-object v3, v1, v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    add-int/2addr v2, v3

    .line 153
    .end local v1    # "s":[Ljava/lang/String;
    :goto_0
    return v2

    .line 147
    .restart local v1    # "s":[Ljava/lang/String;
    :cond_0
    array-length v2, v1

    if-ne v2, v4, :cond_1

    .line 148
    const/4 v2, 0x0

    aget-object v2, v1, v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    mul-int/lit8 v2, v2, 0x3c

    const/4 v3, 0x1

    aget-object v3, v1, v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    add-int/2addr v2, v3

    goto :goto_0

    .line 150
    :cond_1
    const/4 v2, 0x0

    aget-object v2, v1, v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v2

    goto :goto_0

    .line 152
    .end local v1    # "s":[Ljava/lang/String;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 153
    .local v0, "e":Ljava/lang/Exception;
    const/4 v2, -0x1

    goto :goto_0
.end method


# virtual methods
.method public getChronometerStyle()Ljava/lang/String;
    .locals 9

    .prologue
    const-string v8, ""

    .line 302
    const/4 v1, 0x0

    .line 304
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    const-string v5, "progressCover.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 307
    :goto_0
    if-nez v1, :cond_0

    const-string v4, ""

    move-object v4, v8

    .line 327
    :goto_1
    return-object v4

    .line 309
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists style (dialogStyle TEXT,labelStyle TEXT,progressStyle TEXT,chronometerStyle TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 310
    const-string v4, "SELECT * from style;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 311
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 313
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 316
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 317
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 319
    :cond_2
    :try_start_4
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 320
    const/4 v4, 0x3

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 321
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 322
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-object v4, v3

    .line 323
    goto :goto_1

    .line 325
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 326
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 327
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 314
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 305
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getDefaultBackground()Landroid/graphics/drawable/Drawable;
    .locals 2

    .prologue
    .line 62
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v0, v0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v0, v0, Lrexsee/core/application/Resource;->cover:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_0

    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v1, "#222222+#444444+#AAAAAA+#222222"

    invoke-static {v0, v1}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v0, v0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v0, v0, Lrexsee/core/application/Resource;->cover:Landroid/graphics/drawable/Drawable;

    goto :goto_0
.end method

.method public getDialogStyle()Ljava/lang/String;
    .locals 9

    .prologue
    const-string v8, ""

    .line 215
    const/4 v1, 0x0

    .line 217
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    const-string v5, "progressCover.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 220
    :goto_0
    if-nez v1, :cond_0

    const-string v4, ""

    move-object v4, v8

    .line 240
    :goto_1
    return-object v4

    .line 222
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists style (dialogStyle TEXT,labelStyle TEXT,progressStyle TEXT,chronometerStyle TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 223
    const-string v4, "SELECT * from style;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 224
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 226
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 229
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 230
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 232
    :cond_2
    :try_start_4
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 233
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 234
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 235
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-object v4, v3

    .line 236
    goto :goto_1

    .line 238
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 239
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 240
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 227
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 218
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 31
    iget-object v0, p1, Lrexsee/core/browser/Browser;->progressCover:Lrexsee/core/progress/RexseeProgressCover;

    return-object v0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 27
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressCover;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "ProgressCover"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getLabelStyle()Ljava/lang/String;
    .locals 9

    .prologue
    const-string v8, ""

    .line 244
    const/4 v1, 0x0

    .line 246
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    const-string v5, "progressCover.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 249
    :goto_0
    if-nez v1, :cond_0

    const-string v4, ""

    move-object v4, v8

    .line 269
    :goto_1
    return-object v4

    .line 251
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists style (dialogStyle TEXT,labelStyle TEXT,progressStyle TEXT,chronometerStyle TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 252
    const-string v4, "SELECT * from style;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 253
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 255
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 258
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 259
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 261
    :cond_2
    :try_start_4
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 262
    const/4 v4, 0x1

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 263
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 264
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-object v4, v3

    .line 265
    goto :goto_1

    .line 267
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 268
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 269
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 256
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 247
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 35
    new-instance v0, Lrexsee/core/progress/RexseeProgressCover;

    invoke-direct {v0, p1}, Lrexsee/core/progress/RexseeProgressCover;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getProgressStyle()Ljava/lang/String;
    .locals 9

    .prologue
    const-string v8, ""

    .line 273
    const/4 v1, 0x0

    .line 275
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    const-string v5, "progressCover.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 278
    :goto_0
    if-nez v1, :cond_0

    const-string v4, ""

    move-object v4, v8

    .line 298
    :goto_1
    return-object v4

    .line 280
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists style (dialogStyle TEXT,labelStyle TEXT,progressStyle TEXT,chronometerStyle TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 281
    const-string v4, "SELECT * from style;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 282
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 284
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 287
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 288
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 290
    :cond_2
    :try_start_4
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 291
    const/4 v4, 0x2

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 292
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 293
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-object v4, v3

    .line 294
    goto :goto_1

    .line 296
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 297
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 298
    const-string v4, ""

    move-object v4, v8

    goto :goto_1

    .line 285
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 276
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public hide()V
    .locals 2

    .prologue
    .line 188
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressCover$4;

    invoke-direct {v1, p0}, Lrexsee/core/progress/RexseeProgressCover$4;-><init>(Lrexsee/core/progress/RexseeProgressCover;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 202
    return-void
.end method

.method public setStyle(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5
    .param p1, "dialogStyle"    # Ljava/lang/String;
    .param p2, "labelStyle"    # Ljava/lang/String;
    .param p3, "progressStyle"    # Ljava/lang/String;
    .param p4, "chronometerStyle"    # Ljava/lang/String;

    .prologue
    const-string v1, "\',\'"

    .line 206
    :try_start_0
    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    const-string v2, "progressCover.db"

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 207
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v1, "CREATE TABLE if not exists style (dialogStyle TEXT,labelStyle TEXT,progressStyle TEXT,chronometerStyle TEXT);"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 208
    const-string v1, "DELETE FROM style;"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 209
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "INSERT INTO style VALUES (\'"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\',\'"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\',\'"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\',\'"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\');"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 210
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 213
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :goto_0
    return-void

    .line 211
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public show(ILjava/lang/String;)V
    .locals 6
    .param p1, "progressInt"    # I
    .param p2, "progressText"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x0

    .line 184
    const/4 v3, -0x1

    move-object v0, p0

    move v1, p1

    move-object v2, p2

    move-object v5, v4

    invoke-virtual/range {v0 .. v5}, Lrexsee/core/progress/RexseeProgressCover;->show(ILjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    .line 185
    return-void
.end method

.method public show(ILjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
    .locals 6
    .param p1, "progressInt"    # I
    .param p2, "progressText"    # Ljava/lang/String;
    .param p3, "timeout"    # I
    .param p4, "timeoutCallback"    # Ljava/lang/String;
    .param p5, "cancelCallback"    # Ljava/lang/String;

    .prologue
    const/4 v1, 0x0

    const-string v2, ""

    .line 160
    if-eqz p4, :cond_0

    const-string v0, ""

    invoke-virtual {p4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_0
    move-object v4, v1

    .line 169
    .local v4, "timeoutRunnable":Ljava/lang/Runnable;
    :goto_0
    if-eqz p5, :cond_1

    const-string v0, ""

    invoke-virtual {p5, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_1
    move-object v5, v1

    .local v5, "cancelRunnable":Ljava/lang/Runnable;
    :goto_1
    move-object v0, p0

    move v1, p1

    move-object v2, p2

    move v3, p3

    .line 178
    invoke-virtual/range {v0 .. v5}, Lrexsee/core/progress/RexseeProgressCover;->showWithRunnable(ILjava/lang/String;ILjava/lang/Runnable;Ljava/lang/Runnable;)V

    .line 179
    return-void

    .line 160
    .end local v4    # "timeoutRunnable":Ljava/lang/Runnable;
    .end local v5    # "cancelRunnable":Ljava/lang/Runnable;
    :cond_2
    new-instance v0, Lrexsee/core/progress/RexseeProgressCover$2;

    invoke-direct {v0, p0, p4}, Lrexsee/core/progress/RexseeProgressCover$2;-><init>(Lrexsee/core/progress/RexseeProgressCover;Ljava/lang/String;)V

    move-object v4, v0

    goto :goto_0

    .line 169
    .restart local v4    # "timeoutRunnable":Ljava/lang/Runnable;
    :cond_3
    new-instance v0, Lrexsee/core/progress/RexseeProgressCover$3;

    invoke-direct {v0, p0, p5}, Lrexsee/core/progress/RexseeProgressCover$3;-><init>(Lrexsee/core/progress/RexseeProgressCover;Ljava/lang/String;)V

    move-object v5, v0

    goto :goto_1
.end method

.method public show(ILjava/lang/String;Ljava/lang/String;)V
    .locals 6
    .param p1, "progressInt"    # I
    .param p2, "progressText"    # Ljava/lang/String;
    .param p3, "cancelCallback"    # Ljava/lang/String;

    .prologue
    .line 181
    const/4 v3, -0x1

    const/4 v4, 0x0

    move-object v0, p0

    move v1, p1

    move-object v2, p2

    move-object v5, p3

    invoke-virtual/range {v0 .. v5}, Lrexsee/core/progress/RexseeProgressCover;->show(ILjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    .line 182
    return-void
.end method

.method public showWithRunnable(ILjava/lang/String;ILjava/lang/Runnable;Ljava/lang/Runnable;)V
    .locals 9
    .param p1, "progressInt"    # I
    .param p2, "progressText"    # Ljava/lang/String;
    .param p3, "timeout"    # I
    .param p4, "timeoutRunnable"    # Ljava/lang/Runnable;
    .param p5, "cancelRunnable"    # Ljava/lang/Runnable;

    .prologue
    .line 66
    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressCover;->mContext:Landroid/content/Context;

    move-object v0, v1

    check-cast v0, Landroid/app/Activity;

    move-object v8, v0

    new-instance v1, Lrexsee/core/progress/RexseeProgressCover$1;

    move-object v2, p0

    move-object v3, p2

    move v4, p1

    move v5, p3

    move-object v6, p5

    move-object v7, p4

    invoke-direct/range {v1 .. v7}, Lrexsee/core/progress/RexseeProgressCover$1;-><init>(Lrexsee/core/progress/RexseeProgressCover;Ljava/lang/String;IILjava/lang/Runnable;Ljava/lang/Runnable;)V

    invoke-virtual {v8, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 135
    return-void
.end method
